package com.xzbd.gef.factory;

import org.eclipse.gef.EditPart;
import org.eclipse.gef.EditPartFactory;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import com.xzbd.gef.controller.RootNodePart;
import com.xzbd.gef.model.RootNode;

public class NodesEditFactory implements EditPartFactory{

	@Override
	public EditPart createEditPart(EditPart context, Object model) {
		AbstractGraphicalEditPart part = null;

		if(model  instanceof RootNode) {
			part = new RootNodePart();
		}
		
		return part;
	}

}
